package com.gaohe.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;


/**
 * @Classname Activity
 * @Description
 * @Date 2024/6/7 14:29
 * @Created by 高合吴彦祖鹏哥
 */

@Data
@TableName("activity")
public class Activity implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String activityName;
    private String image;
    private Double oldPrice;
    private Double nowPrice;
    private LocalDate startTime;
    private LocalDate endTime;
    private Integer status;
    private String description;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    //创建人
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
